Exercise: TMED.04-Exercise-AddMediaSession
Add Media Session - Part 2
Create a method to initialize the MediaSession
Create an inner class that extends MediaSessionCompat.Callbacks and override the required methods
Update PlayBackState appropriately depending on if ExoPlayer is playing or paused
When the activity is destroyed, set the MediaSession to inactive
Excellent work!
Solution: [TMED.04-Solution-AddMediaSession][Diff]
Next Concept